package logic.weapons.projectileWeapons.artillary;

import logic.ships.Ship;
import logic.weapons.projectileWeapons.Projectile;

import com.jme.math.Vector3f;
import com.jme.scene.Node;

public class ArtillaryMissile extends Projectile {
	
	private static final long serialVersionUID = 1L;
	
	public ArtillaryMissile(Ship ship, Node model, Vector3f direction, Vector3f startLoc, ArtillaryProperties props, 
			ArtillaryWeapon weapon) {
		this(ship, model, direction, startLoc, props, weapon, false);
	}
	
	public ArtillaryMissile(Ship ship, Node model, Vector3f direction, Vector3f startLoc, ArtillaryProperties props, 
			ArtillaryWeapon weapon, boolean dummy) {
		super(ship, model, startLoc, direction, props, weapon, dummy);
		
		if(!dummy) {
			fireController = new ArtillaryController(this, ship, direction);
			addController(fireController);
		}
	}
}